/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : log_2_terminal.cc
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2021-12-17 version v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
                Compile command: make
********************************************************************************
*/
#include <stdio.h>
#include "log_2_terminal.h"

CLog2Terminal* CLog2Terminal::GetInstance(CLogBase *pLog)
{
    static CLog2Terminal obj(pLog);
    return &obj;
}

int CLog2Terminal::WriteLog(const char *tag, const char *msg)
{
    // 输出至终端
    fprintf(stdout, "%s", msg);
    return CCustomLog::WriteLog(tag, msg);
}

int CLog2Terminal::SetLogLevel(int level)
{
    return CCustomLog::SetLogLevel(level);
}